<template>
    <div id="vsidder" class="vsidder">
        <!-- logo -->
        <h1 class="logo"><img :src="logoimg" alt=""></h1>
        <!-- menu -->
        <el-menu>
            <el-menu-item :index="$idx + ''" v-for="($item, $idx) in userSidder" @click="openTabMethod($item.name)" :key="'sidder_' + $idx">
                <i :class="$item.sidderClass"></i>
                <span slot="title">{{$item.text}}</span>
            </el-menu-item>
            <!-- <el-menu-item index="1">
                <i class="icon-ddex-materiel"></i>
                <span slot="title">物料上传</span>
            </el-menu-item>
            <el-menu-item index="2" @click="dataEdit">
                <i class="icon-ddex-data"></i>
                <span slot="title">数据编辑</span>
            </el-menu-item>
            <el-menu-item index="3">
                <i class="icon-ddex-count"></i>
                <span slot="title">统计报告</span>
            </el-menu-item>
            <el-menu-item index="4">
                <i class="icon-ddex-Manual"></i>
                <span slot="title">账号管理</span>
            </el-menu-item> -->
        </el-menu>
    </div>
</template>
<script>
import {
    mapGetters,
} from 'vuex'
export default {
    data() {
        return {
            logoimg: require('@ass/ddex-logo.png')
        }
    },
    computed: {
        ...mapGetters(['userSidder'])
    },

    methods: {
        openTabMethod(name) {
            this.$taber.open(name)
        },

    }
}
</script>
<style scoped>
.vsidder {
    width: 100%;
    height: 100%;
    background-color: #309cfc;
    overflow: auto;
    z-index: 999;
}

.logo {
    width: 100%;
    text-align: center;
    margin-top: 25%;
    margin-bottom: 40%;
    text-align: center;
}

.logo img {
    height: 90px;
    width: 73px;
}

.el-menu {
    border-radius: 0px;
    background-color: #309cfc;
    color: #fff;
}

.el-menu-item {
    height: auto;
    line-height: normal;
    padding: 20%;
    color: #fff;
    text-align: center;
    font-size: 13px;
}

.el-menu-item:hover {
    background-color: #2691e8;
}

.el-menu-item i {
    display: block;
    font-size: 30px;
    margin-bottom: 10px;
}

.el-menu .is-active {
    background-color: #2691e8;
}
</style>